const router = require('koa-router')()
const {handleAbout,handleCarousel,handleNotice,handleStaff}=require('../controller/index')
router.get('/', async (ctx, next) => {
  await ctx.render('index', {
    title: 'Hello Koa 2!'
  })
})

//关于我们
router.get('/about', handleAbout)
//轮播图
router.get('/carousel', handleCarousel)
//公告
router.get('/notice', handleNotice)
//员工
router.get('/staff', handleStaff)


module.exports = router
